import request from '@/utils/request';

let {VUE_APP_ADMIN_API,VUE_APP_BASE_API } = process.env;
//  根据单位id获取食安指数详情
    export  let findByFSuperviseunitId= data => request.get(`${VUE_APP_ADMIN_API}/unit/food/safety/update/findByFSuperviseunitId`, data);
  //  根据单位id获取食安指数详情
  export  let findListByConditionSafety= data => request.post(`${VUE_APP_ADMIN_API}/unit/food/safety/update/findListByCondition`, data);
  
 //  获取分值列表
 export  let recordRindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/unit/food/record/findListByCondition`, data);
  

  //  保存扣分分值
  export  let saveUnitFoodManualRecord= data => request.post(`${VUE_APP_ADMIN_API}/unit/food/record/saveUnitFoodManualRecord`, data);
  

       
 //  保存扣分分值
 export  let findTask= data => request.post(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/findTask`, data);
 export  let saveComplaintComplaint= data => request.post(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/saveComplaintComplaint`, data);
  


 



 export  let findDailyCheckResultByUnitNameAndCheckFormNo= data => request.post(`https://spaq.suzhou.gov.cn/ssa-rcjg-api/RCJD/findDailyCheckResultByUnitNameAndCheckFormNo`, data, { loading: true });

 export  let findSuperviseUnitUpdate= data => request.post(`${VUE_APP_BASE_API}/supervise/unit/update/findSuperviseUnitUpdate`, data, { loading: true , isAuth: true,});
 export  let findsuperviseUnitRecordById= data => request.get(`${VUE_APP_BASE_API}/supervise/unit/record/findsuperviseUnitRecordById`, data, { loading: true });
  
  
  
    
    // 